using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace RhapsodyNowPlayingPlugin
{
    public partial class optionsForm : Form
    {
        public optionsForm()
        {
            InitializeComponent();
        }

        private void optionsForm_Load(object sender, EventArgs e)
        {
            // Load Settings
            this.txtOutput.Text = Properties.Settings.Default.outputTextFormat;
            this.txtRhapsodySongXmlUrl.Text = Properties.Settings.Default.userXmlUrlString;
        }

        private void okButton_Click(object sender, EventArgs e)
        {
            // Save Settings
            Properties.Settings.Default.userXmlUrlString = this.txtRhapsodySongXmlUrl.Text;
            Properties.Settings.Default.outputTextFormat = this.txtOutput.Text;
            Properties.Settings.Default.Save();
            this.Close();
        }

        private void cancelButton_Click(object sender, EventArgs e)
        {
            
        }
    }
}